package com.TheyChat.service.config.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum CodeEnum implements BaseEnum {
    OK(0, "有效"),
    /**
     * 无效
     */
    Fail(400, "请求失败"),
    /**
     * 已删除
     */
    warning(401, "请求错误"),


    stop(402,"请求拦截"),

    error(500, "系统级错误");

    @EnumValue
    private final Integer value;
//    @Getter
//    private final String label;
    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String getDesc() {
        return null;
    }

    CodeEnum(Integer value, String label) {
        this.value = value;
    }
}
